home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
TR-XOFF.ZIP
/
XOFF.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1997-01-01
|
6KB
|
331 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
String STRING012
;------------------------------------------------------------------------------
STRING009 = " hello decompiler!"
STRING010 = " ummmm dont rip and credit your own self! as some"
STRING011 = " people say, give credit to where credit is due!! it may also be "
STRING012 = " used for learning the ppc language!"
GetUser
If (U_Expert == "0") Then
Tokenize TokenStr()
If (TokCount() > 0) Then
STRING006 = GetToken()
If (((!(Upper(STRING006) == " Y") || (!Upper(STRING006) == ";Y")) || (!Upper(STRING006) == "-Y")) || (!Upper(STRING006) == "/Y")) Goto LABEL001
Newline
KbdStuff "bye"
End
Endif
:LABEL001
If (Exist(PPEPath() + "xoff.pcb")) Goto LABEL003
Endif
Newline
Print "@X0Bl@X03ogoff@X08?! y/n "
Color 0
Print " "
Backup 1
:LABEL002
STRING001 = ""
While ((STRING001 == "")) STRING001 = Inkey()
If (Upper(STRING001) == "Y") Backup 4
Color 7
Print "y"
Delay 1
Backup 1
Color 15
Print "y"
Delay 1
Newline
KbdStuff "bye"
Log "@X08[xoff] -- @X0Bu@X03ser off normally!", 1
End
If (Upper(STRING001) == "N") Backup 2
Color 7
Print "n"
Delay 1
Backup 1
Color 15
Print "n"
Delay 1
Newline
Wait
End
Goto LABEL002
:LABEL003
STRING002 = "@X08 @X07 @X3A logoff the system @X07 @X08look for other boards to call@X07 @X08return to board@X07 "
STRING003 = "@X08 logoff the system @X3A look for other boards to call @X08 return to board "
STRING004 = "@X08 logoff the system look for other boards to call @X3A return to board @X08"
Print "@CLS@@POFF@@QOFF@"
DispFile PPEPath() + "xoff.pcb", 1
If (!Exist(PPEPath() + "xoff.cfg")) FCreate 1, PPEPath() + "xoff.cfg", 2, 0
FPutLn 1, "1"
FPutLn 1, "7"
FPutLn 1, "1"
FPutLn 1, "11"
FPutLn 1, "1"
FPutLn 1, "10"
FPutLn 1, ""
FPutLn 1, ".---------------------------------"
FPutLn 1, ")_ xoFF v2.3o configuration file!"
FPutLn 1, "|"
FPutLn 1, "| line 1 -- x-position of Lightbar"
FPutLn 1, "| line 2 -- y-position of Lightbar"
FPutLn 1, "| line 3 -- x-position of start of listing bbs's"
FPutLn 1, "| line 4 -- y-position of start of listing bbs's"
FPutLn 1, "| line 5 -- x-position of local status line"
FPutLn 1, "| line 6 -- y-position of local status line"
FPutLn 1, ""
FClose 1
FOpen 2, PPEPath() + "xoff.cfg", 2, 0
FGet 2, INTEGER001
FGet 2, INTEGER002
FGet 2, INTEGER003
FGet 2, INTEGER004
FGet 2, INTEGER005
FGet 2, INTEGER006
FClose 2
STRING007 = Left(String(U_BdlDay()), 11)
If (Left(STRING007, 1) <= "0") STRING007 = "nill/zilch!"
STRING008 = Left(String(U_Bul()), 8)
If (Left(STRING008, 1) <= "0") STRING008 = "zilch!"
AnsiPos INTEGER005, INTEGER006
SPrint "
user downloaded
--
bytes
total uploads
--
byets
"
Color 76
AnsiPos INTEGER005 + 22, INTEGER006
SPrint STRING007
AnsiPos INTEGER005 + 61, INTEGER006
SPrint STRING008
:LABEL004
AnsiPos INTEGER001, INTEGER002
Print STRING002
Color 0
Print " "
Backup 1
:LABEL005
STRING005 = ""
While ((STRING005 == "")) STRING005 = Inkey()
If ((STRING005 == "LEFT") || (STRING005 == "4")) Goto LABEL008
If ((STRING005 == "RIGHT") || (STRING005 == "6")) Goto LABEL006
If (STRING005 == Chr(13)) Goto LABEL010
Goto LABEL005
:LABEL006
AnsiPos INTEGER001, INTEGER002
Print STRING003
Color 0
Print " "
Backup 1
:LABEL007
STRING005 = ""
While ((STRING005 == "")) STRING005 = Inkey()
If ((STRING005 == "LEFT") || (STRING005 == "4")) Goto LABEL004
If ((STRING005 == "RIGHT") || (STRING005 == "6")) Goto LABEL008
If (STRING005 == Chr(13)) Goto LABEL011
Goto LABEL007
:LABEL008
AnsiPos INTEGER001, INTEGER002
Print STRING004
Color 0
Print " "
Backup 1
:LABEL009
STRING005 = ""
While ((STRING005 == "")) STRING005 = Inkey()
If ((STRING005 == "LEFT") || (STRING005 == "4")) Goto LABEL006
If ((STRING005 == "RIGHT") || (STRING005 == "6")) Goto LABEL004
If (STRING005 == Chr(13)) Goto LABEL012
Goto LABEL009
AnsiPos INTEGER001, INTEGER002
Print ""
Color 0
Print " "
Backup 1
Goto LABEL004
:LABEL010
AnsiPos INTEGER003, INTEGER004
KbdStuff "bye"
Log "@X08[xoff] -- @X0Bu@X03ser off normally!", 1
End
:LABEL011
AnsiPos INTEGER003, INTEGER004
Print ReadLine(PPEPath() + "boards.pcb", 1)
Color 0
Print " "
Backup 1
Delay 1
Print ReadLine(PPEPath() + "boards.pcb", 2)
Color 0
Print " "
Backup 1
Delay 1
Print ReadLine(PPEPath() + "boards.pcb", 3)
Color 0
Print " "
Backup 1
Delay 1
Print ReadLine(PPEPath() + "boards.pcb", 4)
Color 0
Print " "
Backup 1
Delay 1
Print ReadLine(PPEPath() + "boards.pcb", 5)
Color 0
Print " "
Backup 1
Delay 1
Print ReadLine(PPEPath() + "boards.pcb", 6)
Color 0
Print " "
Backup 1
Delay 1
Print ReadLine(PPEPath() + "boards.pcb", 7)
Color 0
Print " "
Backup 1
Delay 1
Print ReadLine(PPEPath() + "boards.pcb", 8)
Color 0
Print " "
Backup 1
Delay 1
Print ReadLine(PPEPath() + "boards.pcb", 9)
Color 0
Print " "
Backup 1
Delay 1
Print ReadLine(PPEPath() + "boards.pcb", 10)
Color 0
Print " "
Backup 1
Delay 1
Print ReadLine(PPEPath() + "boards.pcb", 11)
Color 0
Print " "
Backup 1
Delay 1
Print ReadLine(PPEPath() + "boards.pcb", 12)
PrintLn ""
Color 0
Print " "
Backup 1
Wait
Log "@X08[xoff!] -- @X0Cu@X04ser views bbs listing!", 1
Print "@POFF@@CLS@@QOFF@"
DispFile PPEPath() + "xoff.pcb", 1
AnsiPos INTEGER005, INTEGER006
SPrint "
user downloaded
--
bytes
total uploads
--
byets
"
Color 76
AnsiPos INTEGER005 + 22, INTEGER006
SPrint STRING007
AnsiPos INTEGER005 + 61, INTEGER006
SPrint STRING008
Goto LABEL006
:LABEL012
AnsiPos INTEGER003, INTEGER004
Wait
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 5 End
; 3 Wait
; 23 Color
; 23 Goto
; 20 Let
; 40 Print
; 1 PrintLn
; 22 If
; 2 DispFile
; 1 FCreate
; 1 FOpen
; 2 FClose
; 6 FGet
; 17 FPutLn
; 1 GetUser
; 3 Log
; 15 Delay
; 4 Newline
; 1 Tokenize
; 3 KbdStuff
; 13 AnsiPos
; 21 Backup
; 6 SPrint
;
;
; ■ Functions used :
;
; 22 +
; 26 ==
; 2 <=
; 1 >
; 7 !
; 9 ||
; 6 Upper()
; 4 Left()
; 3 Chr()
; 1 U_BdlDay()
; 1 U_Bul()
; 4 Inkey()
; 2 String()
; 18 PPEPath()
; 12 ReadLine()
; 1 GetToken()
; 2 Exist()
; 1 TokenStr()
; 1 TokCount()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 2 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------